package cn.gson.springmvc.model.pojos;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
import java.util.Objects;

@Entity
public class Berthsadjust {
    private int berthsadjustId;
    private String berthsadjustNamee;
    private String berthsadjustOriward;
    private String berthsadjustOriberth;
    private String berthsadjustNowward;
    private String berthsadjustNowberth;
    private Date berthsadjustDate;
    private String berthsadjustPersonnel;

    @Id
    @Column(name = "berthsadjust_id", nullable = false)
    public int getBerthsadjustId() {
        return berthsadjustId;
    }

    public void setBerthsadjustId(int berthsadjustId) {
        this.berthsadjustId = berthsadjustId;
    }

    @Basic
    @Column(name = "berthsadjust_namee", nullable = true, length = 50)
    public String getBerthsadjustNamee() {
        return berthsadjustNamee;
    }

    public void setBerthsadjustNamee(String berthsadjustNamee) {
        this.berthsadjustNamee = berthsadjustNamee;
    }

    @Basic
    @Column(name = "berthsadjust_oriward", nullable = true, length = 50)
    public String getBerthsadjustOriward() {
        return berthsadjustOriward;
    }

    public void setBerthsadjustOriward(String berthsadjustOriward) {
        this.berthsadjustOriward = berthsadjustOriward;
    }

    @Basic
    @Column(name = "berthsadjust_oriberth", nullable = true, length = 50)
    public String getBerthsadjustOriberth() {
        return berthsadjustOriberth;
    }

    public void setBerthsadjustOriberth(String berthsadjustOriberth) {
        this.berthsadjustOriberth = berthsadjustOriberth;
    }

    @Basic
    @Column(name = "berthsadjust_nowward", nullable = true, length = 50)
    public String getBerthsadjustNowward() {
        return berthsadjustNowward;
    }

    public void setBerthsadjustNowward(String berthsadjustNowward) {
        this.berthsadjustNowward = berthsadjustNowward;
    }

    @Basic
    @Column(name = "berthsadjust_nowberth", nullable = true, length = 50)
    public String getBerthsadjustNowberth() {
        return berthsadjustNowberth;
    }

    public void setBerthsadjustNowberth(String berthsadjustNowberth) {
        this.berthsadjustNowberth = berthsadjustNowberth;
    }

    @Basic
    @Column(name = "berthsadjust_date", nullable = true)
    public Date getBerthsadjustDate() {
        return berthsadjustDate;
    }

    public void setBerthsadjustDate(Date berthsadjustDate) {
        this.berthsadjustDate = berthsadjustDate;
    }

    @Basic
    @Column(name = "berthsadjust_personnel", nullable = true, length = 30)
    public String getBerthsadjustPersonnel() {
        return berthsadjustPersonnel;
    }

    public void setBerthsadjustPersonnel(String berthsadjustPersonnel) {
        this.berthsadjustPersonnel = berthsadjustPersonnel;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Berthsadjust that = (Berthsadjust) o;
        return berthsadjustId == that.berthsadjustId &&
                Objects.equals(berthsadjustNamee, that.berthsadjustNamee) &&
                Objects.equals(berthsadjustOriward, that.berthsadjustOriward) &&
                Objects.equals(berthsadjustOriberth, that.berthsadjustOriberth) &&
                Objects.equals(berthsadjustNowward, that.berthsadjustNowward) &&
                Objects.equals(berthsadjustNowberth, that.berthsadjustNowberth) &&
                Objects.equals(berthsadjustDate, that.berthsadjustDate) &&
                Objects.equals(berthsadjustPersonnel, that.berthsadjustPersonnel);
    }

    @Override
    public int hashCode() {
        return Objects.hash(berthsadjustId, berthsadjustNamee, berthsadjustOriward, berthsadjustOriberth, berthsadjustNowward, berthsadjustNowberth, berthsadjustDate, berthsadjustPersonnel);
    }
}
